//导入express和用户的业务逻辑处理的模块

const express = require('express');
const T_userRouter = require('../router_handler/T_user');

const router = express.Router()

//查询全部用户信息
router.get('/exam/T_user/list', T_userRouter.getAllT_user)
//通过id来查询用户信息
router.get('/exam/T_user/info/:id', T_userRouter.getT_userById)
//更新用户基本信息
router.put('/exam/T_user/update/:id', T_userRouter.updatet_user)
//插入用户
router.post('/exam/T_user/add', T_userRouter.createt_user)
//注销用户
router.delete('/exam/T_user/delete/:id', T_userRouter.deleteT_userById)
//修改用户密码
router.put('/exam/T_user/updatePassword', T_userRouter.updatePassword)
//找回密码
router.post('/exam/T_user/retrievePassword', T_userRouter.retrievePassword)

//导出
module.exports = router